package org.triumphxx.springboot.loopretry.bean;

import lombok.extern.slf4j.Slf4j;
import org.aopalliance.intercept.MethodInterceptor;
import org.aopalliance.intercept.MethodInvocation;




/**
 * @author: wangyp
 * @Date: 2023/7/26
 * @Time: 17:32
 * @Desc:
 **/
@Slf4j
public class RetryInterceptor implements MethodInterceptor {
    @Override
    public Object invoke(MethodInvocation methodInvocation) throws Throwable {
        log.info("方法：{}，执行前操作，该方法入参为：{}", methodInvocation.getMethod().getName(), methodInvocation.getArguments());
        Object proceed = methodInvocation.proceed();
        log.info("方法：{}，执行后操作", methodInvocation.getMethod().getName());
        return null;
    }




}
